<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>README.rdoc</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../css/github.css" type="text/css" media="screen" />
<script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
            <span>Ruby on Rails v4.0.0</span><br />
        
        <h1>
            README.rdoc
        </h1>
        <ul class="files">
            
            <li>
                actionpack/README.rdoc
                
                    <a href="https://github.com/rails/rails/blob/6c7699f60122396c40087363a9680778e87bcc37/actionpack/README.rdoc" target="_blank" class="github_url">on GitHub</a>
                
            </li>
            <li>Last modified: 2013-06-25 14:39:21 +0000</li>
        </ul>
    </div>

    <div id="bodyContent">
        <div id="content">
  
    <div class="description">
      
<h1 id="label-Action+Pack+--+From+request+to+response">Action Pack – From request to response</h1>

<p>Action Pack is a framework for handling and responding to web requests. It
provides mechanisms for <strong>routing</strong> (mapping request URLs to
actions), defining <strong>controllers</strong> that implement actions, and
generating responses by rendering <strong>views</strong>, which are
templates of various formats. In short, Action Pack provides the view and
controller layers in the MVC paradigm.</p>

<p>It consists of several modules:</p>
<ul><li>
<p>Action Dispatch, which parses information about the web request, handles
routing as defined by the user, and does advanced processing related to
HTTP such as MIME-type negotiation, decoding parameters in POST, PATCH, or
PUT bodies, handling HTTP caching logic, cookies and sessions.</p>
</li><li>
<p>Action Controller, which provides a base controller class that can be
subclassed to implement filters and actions to handle requests. The result
of an action is typically content generated from views.</p>
</li><li>
<p>Action View, which handles view template lookup and rendering, and provides
view helpers that assist when building <a
href="../../classes/HTML.html">HTML</a> forms, Atom feeds and more.
Template formats that Action View handles are <a
href="../../classes/ERB.html">ERB</a> (embedded Ruby, typically used to
inline short Ruby snippets inside <a
href="../../classes/HTML.html">HTML</a>), and XML Builder.</p>
</li></ul>

<p>With the Ruby on <a href="../../classes/Rails.html">Rails</a> framework,
users only directly interface with the Action Controller module. Necessary
Action Dispatch functionality is activated by default and Action View
rendering is implicitly triggered by Action Controller. However, these
modules are designed to function on their own and can be used outside of <a
href="../../classes/Rails.html">Rails</a>.</p>

<h2 id="label-Download+and+installation">Download and installation</h2>

<p>The latest version of Action Pack can be installed with RubyGems:</p>

<pre>% [sudo] gem install actionpack</pre>

<p>Source code can be downloaded as part of the <a
href="../../classes/Rails.html">Rails</a> project on GitHub</p>
<ul><li>
<p><a
href="https://github.com/rails/rails/tree/master/actionpack">github.com/rails/rails/tree/master/actionpack</a></p>
</li></ul>

<h2 id="label-License">License</h2>

<p>Action Pack is released under the MIT license:</p>
<ul><li>
<p><a
href="http://www.opensource.org/licenses/MIT">www.opensource.org/licenses/MIT</a></p>
</li></ul>

<h2 id="label-Support">Support</h2>

<p>API documentation is at</p>
<ul><li>
<p><a href="../../index.html">api.rubyonrails.org</a></p>
</li></ul>

<p>Bug reports and feature requests can be filed with the rest for the Ruby on
<a href="../../classes/Rails.html">Rails</a> project here:</p>
<ul><li>
<p><a
href="https://github.com/rails/rails/issues">github.com/rails/rails/issues</a></p>
</li></ul>

    </div>
  


  


  
  


  


  

  



  

    

    

    


    


    <!-- Methods -->
              </div>

    </div>
  </body>
</html>